package com.lfy.kcat.content.rpc;

import com.lfy.kcat.content.biz.TencentVodService;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.dto.DramaAuthCompleteDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author leifengyang
 * @version 1.0
 * @date 2025/9/13 10:19
 * @description:
 */
@RequestMapping("/tencent")
@RestController
public class TencentVodController {


    @Autowired
    TencentVodService tencentVodService;


    @PostMapping("/vod/translate")
    public R tencentVodTransalator(@RequestBody DramaAuthCompleteDTO dto){
        //转码后的数据，保存到数据库
        tencentVodService.vodTransalator(dto.getDramaId());

        return R.ok();
    }
}
